﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using TestRunner.ViewModel;
using SD.Libs.Navigation;

namespace TestRunner
{
    public class ViewModelLocator
    {
        #region services

        NavigationService _navigationService;

        #endregion services

        public ViewModelLocator()
        {
            if (System.ComponentModel.DesignerProperties.IsInDesignTool == false)
            {
                _navigationService = new NavigationService();
            }
        }

        public MainPageVM MainPageViewModel
        {
            get {return new MainPageVM(_navigationService);}
        }

        public Page2VM Page2ViewModel
        {
            get { return new Page2VM(_navigationService); }
        }
    }
}
